#!/bin/bash

DIRECTORY=/usr/local/tomcat/webapps/report/WEB-INF
if [ "`ls -A $DIRECTORY`" = "" ]; then
  echo "$DIRECTORY is indeed empty,initing···"
  \cp -rp /data/WEB-INF /usr/local/tomcat/webapps/report/
else
  echo "system inited , starting···"
fi

exec $@